package cn.tedu.yushougeproduct.service;

import cn.tedu.yushouge.commons.pojo.vo.PageData;
import cn.tedu.yushougeproduct.pojo.param.CommentAddNewParam;
import cn.tedu.yushougeproduct.pojo.param.CommentUpdateInfoParam;
import cn.tedu.yushougeproduct.pojo.vo.CommentListItemVO;
import cn.tedu.yushougeproduct.pojo.vo.CommentStandardVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface ICommentService {
    void addNew(CommentAddNewParam commentAddNewParam);

    void delete(Long id);

    void updateInfoById(Long id, CommentUpdateInfoParam commentUpdateInfoParam);

    CommentStandardVO getStandardById(Long id);

    PageData<CommentListItemVO> list(Integer pageNum);

    PageData<CommentListItemVO> list(Integer pageNum,Integer pageSize);
}
